﻿@model E5_KhuyenMaiVang.Models.DEAL
@{
    ViewBag.Title = "TKM_CapNhat";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";

}
@section menu
{
    <h3>
        Admin</h3>
    <ul class="nav">
        <li><a href="@Url.Action("TKM_QuanLy", "Admin")">Quản lý khuyến mãi</a></li>
        <li><a href="@Url.Action("TKM_Them", "Admin")"  style="text-decoration:underline; font-weight:bold;">
            Thêm khuyến mãi</a></li>
    </ul>
}
<div class="top-bar">
    <h1>
        QUẢN LÝ KHUYẾN MÃI</h1>
    <div class="breadcrumbs">
        Tin khuyến mãi/ <a href="#">Thêm khuyến mãi</a></div>
</div>
<br />

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    <div id="mainContent">
        <div class="content-box">
            <div class="h1-bg">
            </div>
            <div id="register">
                <!-- Thông tin sản phẩm -->
                <div class="register">
                    <h2>
                        THÔNG TIN SẢN PHẨM</h2>
                        @Html.ValidationSummary(true)
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.DealName)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.DealName) @Html.ValidationMessageFor(model => model.DealName)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">@Html.LabelFor(model => model.CategoryID)</div>
                        <div class="input-row">      	    
                            @Html.DropDownList("CategoryID", String.Empty)
                            @Html.ValidationMessageFor(model => model.CategoryID)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.CompanyID)
                        </div>
                        <div class="input-row">
                            @Html.DropDownList("CompanyID", String.Empty)
                            @Html.ValidationMessageFor(model => model.CompanyID)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.Price)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.Price) @Html.ValidationMessageFor(model => model.Price)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.Discount)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.Discount) @Html.ValidationMessageFor(model => model.Discount)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.StartDate)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.StartDate) @Html.ValidationMessageFor(model => model.StartDate)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.EndDate)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.EndDate) @Html.ValidationMessageFor(model => model.EndDate)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.ValidDate)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.ValidDate) @Html.ValidationMessageFor(model => model.ValidDate)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.InvalidDate)
                        </div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.InvalidDate) @Html.ValidationMessageFor(model => model.InvalidDate)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.Description)
                        </div>
                        <div class="input-row">
                            @Html.TextAreaFor(model => model.Description, new { @style = "width:200px; height:50px" })
                            @Html.ValidationMessageFor(model => model.Description)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.Image)</div>
                        <div class="input-row">
                            @Html.EditorFor(model => model.Image) @Html.ValidationMessageFor(model => model.Image)
                        </div>
                    </div>
                    <div class="row">
                        <div class="left-row">
                            @Html.LabelFor(model => model.Spec)</div>
                        <div class="input-row">
                            @Html.TextAreaFor(model => model.Spec, new { @style = "width:200px; height:50px" })
                            @Html.ValidationMessageFor(model => model.Spec)
                        </div>
                    </div>
                    <!--Hết thông tin sản phẩm-->
                    <div class="register">
                        <h2>
                            THÔNG TIN KHUYẾN MÃI</h2>
                        <div class="row">
                            <div class="left-row">
                                @Html.LabelFor(model => model.MaxQuantity)</div>
                            <div class="input-row">
                                @Html.EditorFor(model => model.MaxQuantity) @Html.ValidationMessageFor(model => model.MaxQuantity)
                            </div>
                        </div>
                        <div class="row">
                            <div class="left-row">
                                @Html.LabelFor(model => model.MinQuantity)</div>
                            <div class="input-row">
                                @Html.EditorFor(model => model.MinQuantity) @Html.ValidationMessageFor(model => model.MinQuantity)
                            </div>
                        </div>
                        <div class="row">
                            <div class="left-row">
                                @Html.LabelFor(model => model.StatusID)</div>
                            <div class="input-row">
                                @Html.DropDownList("StatusID", String.Empty)
                                @Html.ValidationMessageFor(model => model.StatusID)                                
                            </div>
                        </div>
                        <div class="row">
                            <div class="left-row">
                                @Html.LabelFor(model => model.CityID)
                            </div>
                            <div class="input-row">
                             @Html.DropDownList("CityID", String.Empty)
                             @Html.ValidationMessageFor(model => model.CityID)                                
                            </div>
                        </div>
                    </div>
                    <!--Hết thông tin khuyến mãi-->
                    <div class="row">
                        <div class="midle">
                            <input class="submit-form" name="submit" value=" Cập nhật Deal " type="submit" /></div>
                    </div>
                    <br />
                    <br />
                </div>
            </div>
        </div>
        <!-- end #mainContent -->
        <table width="100%">
        </table>
    </div>
}